<?php

namespace App\Http\Controllers;

use App\Models\ShareTitle;

class ShareTitleController extends Controller
{
    public function getTitle()
    {
        $info = ShareTitle::select('title')
            ->inRandomOrder()
            ->first();
        $title = '我在乒乓江湖等你';
        if ($info) {
            $title = $info->title;
        }
        return response()->json(['recode' => 1, 'title' => $title]);

    }
}
